cmake_minimum_required(VERSION 3.8)
project(dir_prop_inherited)

add_subdirectory("${PROJECT_SOURCE_DIR}/sub")

get_directory_property(var DIRECTORY "${PROJECT_SOURCE_DIR}/sub" my_dir_prop)
message(STATUS "my_dir_prop = ${var}")
